<?php echo $header;?>

<div id="column-left">
<a href="<?php echo $addplan;?>" class="button"><span>添加计划</span></a>
<div class="box" >
<div class="box-heading">我的计划</div>
<?php foreach($allstatus as $onestatus){
	?>
	<div class="box-content" style="background:<?php echo $onestatus['status_background'];?>"><div class="box-category"><ul><li><a href="<?php echo $link_status.$onestatus["status"];?>" ><?php echo $onestatus["status_content"];?></a></li></ul></div></div>
	<?php
}?>
</div>
</div>

<div id="content">

				<div class="box" >
				<div class="box-heading" style="background:<?php echo $status['status_background'];?>"><?php echo $status["status_content"];?></div>
			   <?php if(isset($myplans)){
					foreach($myplans as $myplan){
							?>
							
							<div class="box-content">
								<div class="left">
								计划类型:<?php echo $myplan["type_content"];?><a href="<?php echo $viewplan.$myplan["plan_id"];?>" class="button"><span>查看详情</span></a>
								</div>
								<br/>
							<?php echo $myplan["content"];?>
								<div class="right">
								<?php echo $myplan["date_added"];?>
								<?php if($status['status']==1){?>
								<a href="<?php echo $action_done.$myplan["plan_id"];?>" class="button"><span>标记为完成</span></a>
								<?php } if($status['status']==1){?>
								<a href="<?php echo $action_pause.$myplan["plan_id"];?>" class="button"><span>标记为搁置</span></a>
								<?php } if($status['status']==2||$status['status']==3){?>
								<a href="<?php echo $action_doing.$myplan["plan_id"];?>" class="button"><span>标记为进行中</span></a>
								<?php }?>
								<?php if($status['status']!=4&&$status['status']!=5){?>
								<a href="<?php echo $action_giveup.$myplan["plan_id"]; ?>" style="text-decoration:none;"><span style="padding:1px;color:#ffffff;background:#E11931;" >放弃</span></a>
								<?php }?>
								</div>
							</div>
							<?php
					}
				}
				?>
				</div>
	<div class="pagination"><?php echo $pagination; ?></div>
</div>
<?php echo $footer;?>